package com.zx.cloud.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;

import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * @author Alex
 */

@ToString
@EqualsAndHashCode
@RefreshScope
@ConfigurationProperties(prefix = DelayProperties.PREFIX)
public class DelayProperties {
	
    public static final String PREFIX = "microservice.delay";

    /**
     * 延迟返回毫秒时间
     */
    private long timeInMillseconds;

	public long getTimeInMillseconds() {
		return timeInMillseconds;
	}

	public void setTimeInMillseconds(long timeInMillseconds) {
		this.timeInMillseconds = timeInMillseconds;
	}

}
